import request from '@/utils/request'

const API = {
    UPDATE_LABEL: '/subject/subject/label/update', // 更新标签
    QUERY_LABEL_BY_PRIMARY_CATEGORY: '/subject/subject/label/queryLabelByPrimaryCategoryId?parentId=',// 查询大类下的标签
    QUERY_LABEL_BY_CATEGORY: '/subject/subject/label/queryLabelByCategoryId',// 查询分类下的标签
}

export const reqQueryLabelByPrimaryCategoryId = (parentId) => request.post(API.QUERY_LABEL_BY_PRIMARY_CATEGORY + parentId)

export const reqQueryLabelByCategory = (data) => request.post(API.QUERY_LABEL_BY_CATEGORY, data)